]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-box-layout: Don't report a paint volume when we have no allocation
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 15 Sep 2014 15:32:33 +0000 (17:32 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 15 Sep 2014 15:35:17 +0000 (17:35 +0200)
src/st/st-box-layout.c

index 91e93a56842eccbf47f5e0c11a2be879e2374447..cb4917f209645e8432ed90f54e1a5a26d215a7d6 100644 (file)
@@ -495,6 +495,10 @@ st_box_layout_get_paint_volume (ClutterActor       *actor,
   ClutterActorBox content_box;
   ClutterVertex origin;
 
+  /* Setting the paint volume does not make sense when we don't have any allocation */
+  if (!clutter_actor_has_allocation (actor))
+    return FALSE;
+
   /* When have an adjustment we are clipped to the content box, so base
    * our paint volume on that. */
   if (priv->hadjustment || priv->vadjustment)